package com.pactera.madp.cp.mapper.sync;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.sync.SyncCustomInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SyncCustomInfoMapper extends BaseMapper<SyncCustomInfoEntity> {

    boolean batchSaveOrUpdate(@Param("tableName") String tableName, @Param("entityList") List<SyncCustomInfoEntity> entityList);

    boolean removeAll(@Param("tableName") String tableName);

    List<SyncCustomInfoEntity> list(@Param("tableName") String tableName, @Param("idx") Integer idx, @Param("perCount") Integer perCount, @Param("custIds") List<String> custIds);

    int count(@Param("tableName")String tableName);

}
